package _spring_test._CircularReference;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: huangya
 * @Date: 2020/09/22
 * @Description:
 */
public class Test {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("CircularReference/application-circular-reference.xml");
        ClassB classB = (ClassB)ac.getBean("classB");
        System.out.println(classB.getAClassa1());
    }
}
